<?php
    include_once('connect.php');
    $db = new database("SELECT *
                        FROM categories");
    $arr = $db->render();
    
    //echo('<pre>');
    //print_r($arr);
    echo(json_encode($arr));
?>